xunit setup throw exception

100

xunit setup throw exception -

Mock<ISomeObj> someObj = new Mock<ISomeObj>();

//NOTE the Throws method
someObj.Setup(s => s.Get())
  .Throws(new IOException());

Comments

Submit
0 Comments